#ifndef BIG_TILE_MENU_H
#define BIG_TILE_MENU_H

#include <Gosu/Gosu.hpp>
#include <Gosu/Utility.hpp>
#include <Gosu/AutoLink.hpp> // Makes life easier for Windows users compiling this.

#include <cstdlib>
#include <vector>
#include <string>
#include "objects.h"


template <class T>
class TileMenu
{


public:

	
	TileMenu(Gosu::Graphics& gfx, int posX,int posY,int columns,int rows, std::vector<T> *tiles, int size);

	void draw();
	bool onMenu(double x, double y);
	T getTile(double x, double y);



private:

	int posX, posY, columns,rows, size;
	std::vector<T> tiles;
	Gosu::Graphics * graphics;
	T	clickedTile;

	std::vector<Gosu::Image *> images;



};
#include "TileMenu.inl"
#endif